﻿package mortal.game.view.combinedServer.item
{
    import flash.events.*;
    import mortal.game.events.*;
    import mortal.game.resource.*;
    import mortal.game.view.combinedServer.data.*;
    import mortal.game.view.common.*;
    import mortal.mvc.core.*;

    public class CombinedSerActIcon extends ActionBaseIcon
    {
        private static var _instance:CombinedSerActIcon;

        public function CombinedSerActIcon()
        {
            super(ResFileConst.CombinedSerActIcon);
            return;
        }// end function

        override protected function clickHandler(event:MouseEvent) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(CombinedSerEvent.CombinedSerOpenMode));
            return;
        }// end function

        public static function get instance() : CombinedSerActIcon
        {
            if (!_instance)
            {
                _instance = new CombinedSerActIcon;
            }
            return _instance;
        }// end function

        public static function hasInstance() : Boolean
        {
            return _instance != null;
        }// end function

    }
}
